package com.spark.colliery.module.mine.fragment

import android.os.Bundle
import android.view.View
import com.spark.colliery.R
import com.spark.common.BaseFragment
import kotlinx.android.synthetic.main.frag_forget_with_security.*

/**
 * ForgetPassword that u need go through the security questions which includes phone etc.
 */

class ForgetWithSecuityFragment : BaseFragment() {
    companion object {
        fun newInstance(): ForgetWithSecuityFragment {
            return ForgetWithSecuityFragment()
        }
    }

    override fun contentResId(): Int {
        return R.layout.frag_forget_with_security
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        btn_next.setOnClickListener {
            activity?.apply {
                supportFragmentManager.beginTransaction()
                        .replace(R.id.fl_content, ForgetWithResetFragment.newInstance())
                        .addToBackStack(null)
                        .commit()
            }
        }
    }

}
